<%@ page import="java.sql.*"%> 
	<%! 
	    String user = "aiad048"; 
	    String pass = "aiad048"; 
	    String database = "test"; 
	    String url = "jdbc:sqlserver://w2ksa.cs.cityu.edu.hk:1433;databaseName=aiad048_db;"; 
	     
	        Connection conn; 
	        Statement stmt; 
	%> 
	<% 
	    try{ 
	            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); 
	            conn = DriverManager.getConnection(url,user,pass); 
	            stmt = conn.createStatement(); 
	    }catch(SQLException sqle){ 
	        out.println("SQL Exception : " + sqle); 
	    } 
	%> 